using LiJ.Pay.Ali.Pay.Mos;
using System.Threading.Tasks;

namespace LiJ.Pay.Ali.Pay
{
	/// <summary>
	///  退款接口
	/// </summary>
	public class ZPayRefundApi : ZPayBaseApi
	{
		/// <summary>
		///  构造函数
		/// </summary>
		/// <param name="config"></param>
		public ZPayRefundApi(ZPayConfig config = null)
			: base(config)
		{
		}

		/// <summary>
		/// 统一预下单（收单）（扫码支付   -  用户扫商家二维码）
		/// </summary>
		/// <param name="refundReq"></param>
		public async Task<ZPayRefundResp> RefunPayAsync(ZPayRefundReq refundReq)
		{
			return await base.PostApiAsync<ZPayRefundReq, ZPayRefundResp>("alipay.trade.refund", "alipay_trade_refund_response", refundReq);
		}
	}
}
